import axios from "@/utils/request";

// 查询【请填写功能名称】列表
export const listText=(query:any)=> {
  return axios({
    path: '/system/text/list',
    method: 'get',
    data: query
  })
}

export const listTreeText=(query:any)=> {
  return axios({
    path: '/system/text/treet',
    method: 'get',
    data: query
  })
}

export const listTree=(query:any)=> {
  return axios({
    path: '/system/text/listtree',
    method: 'get',
    data: query
  })
}

// 查询【请填写功能名称】详细
export const getText=(discssId:any)=>  {
  return axios({
    path: '/system/text/' + discssId,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export const addText=(data:any)=>  {
  return axios({
    path: '/system/text',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export const updateText=(data:any)=>  {
  return axios({
    path: '/system/text',
    method: 'put',
    data: data
  })
}

// 删除【请填写功能名称】
export const delText=(discssId:any)=>  {
  return axios({
    path: '/system/text/' + discssId,
    method: 'delete'
  })
}
